package com.think.teaching.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 学生详细信息
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public class StudentInfo extends BaseModel<StudentInfo> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	 @ApiModelProperty(hidden = true)
	private Integer userId;

	/**
	 * 班级
	 */
	private Integer classId;
	
	private String studentId;
	
	private String trueName;
	
	private String avatar;
			
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}


	
	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer _class) {
		this.classId = _class;
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public String getTrueName() {
		return trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
    public String toString() {
        return "StudentInfo{" +
        "id=" + id +
        ", userId=" + userId +
        ", class=" + classId +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", state=" + state +
        ", delflag=" + delflag +
        "}";
    }

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
}
